

import org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.ReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.TableIdentifier;

public class MyReverseEngineeringStrategy extends
		DelegatingReverseEngineeringStrategy {
	public MyReverseEngineeringStrategy(ReverseEngineeringStrategy delegate) {
		super(delegate);
	}
  @Override
public String tableToClassName(TableIdentifier tableIdentifier) {

	    String fullClassName = super.tableToClassName(tableIdentifier);
	    String packageName = fullClassName.substring(0,fullClassName.lastIndexOf(".")+1);
	    String className = fullClassName.substring(fullClassName.lastIndexOf(".")+1);
	    if(className.startsWith("T")) {
	     String className1 = className.substring(2);
	      String a=className.substring(1,2).toLowerCase();
	      return packageName + "T"+a+className1;
	    } else
	      return className;
	  
//	String t= super.tableToClassName(tableIdentifier);
//	String t3;
//	try {
//		String t1=t.substring(1,2);
//		String t2=t.substring(2);
//		t3 = "T"+t1.toLowerCase()+t2;
//	} catch (Exception e) {
//		return t.toUpperCase();
//	}
//	return "T"+t.toLowerCase();
} 
  @Override
public String columnToPropertyName(TableIdentifier table, String column) {
	// TODO Auto-generated method stub
//	return super.columnToPropertyName(table, column);
return column;
  }
  
}
